package com.parsechina.hpush.broker.internal.message;

import com.parsechina.hpush.broker.internal.StoredMessage;

/**
 * @author linfeng
 * @since 2016/12/9
 */
public class NotifyAcknowledgedMessage extends NotifyAbstractMessage {


    private static final long serialVersionUID = 2073637157320322081L;

    private final StoredMessage storedMessage;
    private final String topic;
    private final String username;

    public NotifyAcknowledgedMessage(StoredMessage storedMessage, String topic, String username) {
        super(NotifyType.PUBCOMP);
        this.storedMessage = storedMessage;
        this.topic = topic;
        this.username = username;
    }

    public StoredMessage getStoredMessage() {
        return storedMessage;
    }

    public String getTopic() {
        return topic;
    }

    public String getUsername() {
        return username;
    }
}
